package com.qfedu.meidijiaju.controller;

import com.qfedu.meidijiaju.entity.Sleep;
import com.qfedu.meidijiaju.service.RecommendService;
import com.qfedu.meidijiaju.service.SleepService;
import io.swagger.annotations.Api;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Api(tags = "睡眠模式模块")
@RestController
@RequestMapping("/sleep")
public class SleepController {
    @Autowired
    private SleepService sleepService;
    @GetMapping("/allSleep")
    public List allSleep(){
        return sleepService.allSleep();
    }
}
